Extensions

Press shift + S to search API reference.

Interface

TypographySetProps

View source

Style props for the typography of an element.

fontFamilyOptionalResponsiveProp<FontFamilyProperty>

Specifies a prioritized list of one or more font family names and/or generic family names for the selected element.

fontSizeOptionalResponsiveProp<FontSizeProperty<Length>>

Sets the size of the font. This property is also used to compute the size of em, ex, and other relative length units.

fontStyleOptionalResponsiveProp<FontStyleProperty>

Sets whether a font should be styled with a normal, italic, or oblique face.

fontWeightOptionalResponsiveProp<FontWeightProperty | string>

Specifies the weight (or boldness) of the font.

letterSpacingOptionalResponsiveProp<LetterSpacingProperty<Length> | string>

Sets the spacing behavior between text characters.

lineHeightOptionalResponsiveProp<LineHeightProperty<Length>>

Sets the amount of space used for lines, such as in text. On block-level elements, it specifies the minimum height of line boxes within the element. On non-replaced inline elements, it specifies the height that is used to calculate line box height.

textAlignOptionalResponsiveProp<TextAlignProperty>

Sets the horizontal alignment of the text.

textColorOptionalResponsiveProp<ColorProperty>

Sets the foreground color value of an element's text and text decorations, and sets the currentcolor value.

textDecorationOptionalResponsiveProp<TextDecorationProperty>

Sets the appearance of decorative lines on text.

textTransformOptionalResponsiveProp<TextTransformProperty>

Specifies how to capitalize an element's text. It can be used to make text appear in all-uppercase or all-lowercase, or with each word capitalized.